import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';

@Component({
  selector: 'page-join',
  templateUrl: 'join.html',
})
export class JoinPage {
	values = '';

  	constructor(public navCtrl: NavController, public navParams: NavParams) {
  	}

  	onKey(event:any){
  		var val = event.target.value;
  		if(val.length>6)
  			this.values = val.slice(0,6)
  		// this.values +=  + ' | ';
  		// oninput="if(value.length>6)value=value.slice(0,6)" 
  	}

  	ionViewDidLoad() {
    	console.log('ionViewDidLoad joinPage');
  	}

}
